Hi, I was working on part 16 of the Python Data Analysis tutorial (https://pythonprogramming.net/scikit-learn-sklearn-machine-learning-data-analysis-python-pandas-tutorial/) and I get this error when I run my code:
Traceback (most recent call last): File "C:UsersAntonioDocumentsPythonDataAnalysisrootnestedmodule4.py", line 8, in <module> from sklearn import svm, preprocessing, cross_validation File "C:UsersAntonioAppDataLocalProgramsPythonPython35-32libsite-packagessklearn__init__.py", line 57, in <module> from .base import clone File "C:UsersAntonioAppDataLocalProgramsPythonPython35-32libsite-packagessklearnbase.py", line 9, in <module> from scipy import sparse ImportError: No module named 'scipy'
I tried installing scipy using pip but then I get this error:
Command "c:usersantonioappdatalocalprogramspythonpython35-32python.exe - u -c "import setuptools, tokenize;__file__='C:UsersAntonioAppDataLocal Temppip-build-44kiqt3jscipysetup.py';exec(compile(getattr(tokenize, 'open' , open)(__file__).read().replace('rn', 'n'), __file__, 'exec'))" install --re cord C:UsersAntonioAppDataLocalTemppip-4agjhr0s-recordinstall-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:Us ersAntonioAppDataLocalTemppip-build-44kiqt3jscipy
Furthermore, I tried installing scipy using the installer found here: https://sourceforge.net/projects/scipy/files/scipy/0.15.1/
Yet I get the following error: Python version 3.4 required, which was not found in registry.
I would really appreciate any help on this, thanks!
*i just noted that all backslashes were removed when I posted this thread
You must be logged in to post. Please login or register an account.
It looks like you're using Python 3.5, but trying to install the version for 3.4.
One option is to get scipy from:
http://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy
Getting the version that matches your python version as well as your *python* bit version (just because you have 64 bit os, doesn't mean you have 64 bit python).
-Harrison 8 years ago
You must be logged in to post. Please login or register an account.